package FileDemo;

import java.io.File;

/**
 * @Description
 * @Author:PrinceHan
 * @CreateTime:2021/10/20 22:40
 */
public class FileConstructor {
    public static void main(String[] args) {
        File file1 = new File("E:\\Java-IDEA\\FileTest\\java.txt");
        System.out.println(file1);
        File file2 = new File("E:\\Java-IDEA\\FileTest","java2.txt");
        File file3 = new File("E:\\Java-IDEA");
        File file4 = new File(file3,"java3.txt");
        System.out.println(file2);
        System.out.println(file3);
        System.out.println(file4);

    }
}
